<?php if ($this->isAjax()):?>
<h3 class="flb">
	<em id="return_<?php echo $_GET['handlekey']?>">记账</em>
	<span>
		<a href="javascript:;" class="flbc" onclick="hideWindow('<?php echo $_GET['handlekey']?>');" title="关闭">关闭</a>
	</span>
</h3>
<div style="width:260px; height:150px; padding:10px;">
<?php endif;?>
<form action="index.php?m=record&a=add" method="post">
日期：<input type="text" name="DiaryDate" value="<?php echo date('Y-m-d H:i:s')?>" /><br />
账户：<select name="AccountID">
<?php foreach($this->AccountList as $k=>$v):?>
<option value="<?php echo $v['AID']?>"><?php echo $v['AccountName']?></option>
<?php endforeach;?>
</select><br />
收支项目：<select name="IeItem">
<option value="0">请选择收支项目</option>
<?php foreach($this->IeItem as $k=>$v):?>
<option value="<?php echo $v['AID']?>"><?php echo $v['ItemName']?></option>
<?php if($v['child']):?>
<?php foreach($v['child'] as $ck=>$cv):?>
<option value="<?php echo $cv['AID']?>">&nbsp;&nbsp;-&nbsp;&nbsp;<?php echo $cv['ItemName']?></option>
<?php endforeach;?>
<?php endif;?>
<?php endforeach;?>
</select><br />
金额：<input type="text" name="Amount" value="0.00" /><br />
备注：<input type="text" name="Remark" value="" /><br />
<input type="hidden" name="do" value="save" />
<input type="submit" name="save" value="保存" />
</form>
<?php if ($this->isAjax()):?>
</div>
<?php endif;?>